package com.military.controller;

import com.military.pojo.Result;
import com.military.pojo.descriptionOption;
import com.military.service.ReportService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/report")
@RestController
public class ReportController {

    @Autowired
    private ReportService reportService;

    /**
     * 统计军标模型数据
     * @return
     */
    @GetMapping("/militaryData")
    public Result getMilitaryData(){
        log.info("统计军标模型数据");
        descriptionOption descriptionOption = reportService.getMilitaryData();
        return  Result.success(descriptionOption);
    }
}
